import request from '@/utils/request'

// 查询短信业务列表
export function listBiz(query) {
  return request({
    url: '/cms/sms/biz/list',
    method: 'get',
    params: query
  })
}

// 查询全部短信业务列表
export function listBizAll() {
  return request({
    url: '/cms/sms/biz/listAll',
    method: 'get',
  })
}

// 查询短信业务详细
export function getBiz(id) {
  return request({
    url: '/cms/sms/biz/' + id,
    method: 'get'
  })
}

// 新增短信业务
export function addBiz(data) {
  return request({
    url: '/cms/sms/biz',
    method: 'post',
    data: data
  })
}

// 修改短信业务
export function updateBiz(data) {
  return request({
    url: '/cms/sms/biz',
    method: 'put',
    data: data
  })
}


// 锁定短信业务
export function lockBiz(id) {
  return request({
    url: '/cms/sms/biz/lock/' + id,
    method: 'post',
  })
}

// 删除短信业务
export function delBiz(id) {
  return request({
    url: '/cms/sms/biz/' + id,
    method: 'delete'
  })
}
